package com.smart.campus.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.smart.campus.school.mapper.SchoolExtMapper;
import com.smart.campus.school.domain.SchoolExt;
import com.smart.campus.school.service.ISchoolExtService;
import com.smart.campus.common.core.text.Convert;

/**
 * 学校扩展信息Service业务层处理
 * 
 * @author Zhihe.Li
 * @date 2020-08-05
 */
@Service
public class SchoolExtServiceImpl implements ISchoolExtService 
{
    @Autowired
    private SchoolExtMapper schoolExtMapper;

    /**
     * 查询学校扩展信息
     * 
     * @param id 学校扩展信息ID
     * @return 学校扩展信息
     */
    @Override
    public SchoolExt selectSchoolExtById(Long id)
    {
        return schoolExtMapper.selectSchoolExtById(id);
    }

    /**
     * 查询学校扩展信息列表
     * 
     * @param schoolExt 学校扩展信息
     * @return 学校扩展信息
     */
    @Override
    public List<SchoolExt> selectSchoolExtList(SchoolExt schoolExt)
    {
        return schoolExtMapper.selectSchoolExtList(schoolExt);
    }

    /**
     * 新增学校扩展信息
     * 
     * @param schoolExt 学校扩展信息
     * @return 结果
     */
    @Override
    public int insertSchoolExt(SchoolExt schoolExt)
    {
        return schoolExtMapper.insertSchoolExt(schoolExt);
    }

    /**
     * 修改学校扩展信息
     * 
     * @param schoolExt 学校扩展信息
     * @return 结果
     */
    @Override
    public int updateSchoolExt(SchoolExt schoolExt)
    {
        return schoolExtMapper.updateSchoolExt(schoolExt);
    }

    /**
     * 删除学校扩展信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSchoolExtByIds(String ids)
    {
        return schoolExtMapper.deleteSchoolExtByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除学校扩展信息信息
     * 
     * @param id 学校扩展信息ID
     * @return 结果
     */
    @Override
    public int deleteSchoolExtById(Long id)
    {
        return schoolExtMapper.deleteSchoolExtById(id);
    }
}
